package com.hitqz.robot.dispatch.netty.strategy.zhiqingDispather;



import com.hitqz.robot.dispatch.netty.util.JtsUtil;
import lombok.extern.slf4j.Slf4j;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.Point;
import org.locationtech.jts.geom.Polygon;

/**
 * @author xupkun
 * @date 2024/9/8
 */
@Slf4j
public class ZhiqingStrategyUtil {




    /**
     * 判断点是否在阻塞范围
     * @param agvPolygon
     * @return
     */
    public static boolean isPositionInBoundingBox(Polygon agvPolygon, Geometry geometry) {

        // 将Position转换为Point
        return agvPolygon.intersects(geometry);
        // 判断点是否在矩形内

    }

}
